<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>信息提醒</title>
    <script src="/static/admin/js/jquery-1.8.3.min.js"></script>
</head>
<body>
    <p>{{ msg }}，将在 <span id="time">3</span> 秒后自动跳转... <a href="{{ url }}">点击此处自动跳转</a> </p>
</body>
    <script>
        var s = 3
        // 定义一个多次定时器
        var I = setInterval(function(){
            s--
            if(s==0){
                location.href="{{ url }}"
                clearInterval(I);
                return
            }
            $('#time').html(s)
        },1000)

    </script>
</html>